package com.txc.openfeign.common.pay.factory;

import com.txc.openfeign.common.pay.api.PayBusinessApi;
import com.txc.openfeign.common.pay.dto.CollectDto;
import com.txc.openfeign.common.pay.dto.CostInfoDto;
import com.txc.openfeign.common.pay.vo.QueryCollectResVO;
import com.txc.openfeign.common.pay.vo.ResBaseVO;
import com.txc.openfeign.common.pay.vo.UserCostInfoVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @ClassName: PayBusinessApiFallbackFactory
 * @Author: TXC
 * @Date: 2023-08-27 09:26
 **/
@Component
@Slf4j
public class PayBusinessApiFallbackFactory implements FallbackFactory<PayBusinessApi> {
    @Override
    public PayBusinessApi create(Throwable cause) {
        return new PayBusinessApi() {
            @Override
            public UserCostInfoVO getUserCostInfo(CostInfoDto costInfoDto) {
                return null;
            }

            @Override
            public ResBaseVO collect(CollectDto collectDto) {
                return null;
            }

            @Override
            public QueryCollectResVO queryPayment(String bankSerial, String bankDate, String acctOrgNo) {
                return null;
            }

            @Override
            public ResBaseVO noticeCheck(String acctOrgNo, String filePath, String fileType, String fileName) {
                return null;
            }


        };
    }
}
